:root {
    --skin-background-color: #fff;
    --skin-main-bg-color: #0ca1e5;
    --skin-main-color: #fff;
    --skin-color: #395c7c;
    --skin-header-bg-color: var(--skin-background-color);
    --skin-footer-bg-color: var(--skin-main-bg-color);
    --skin-footer-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}
html, body {
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    font-size: 0.4rem;
    font-family: '微软雅黑', '宋体', serif;
}
body {
    background: var(--skin-main-bg-color);
    color: var(--skin-color);
}

.yy-screen-header {
    flex:0 0 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 0.15rem;
    background: var(--skin-header-bg-color);
    font-weight: bold;
}
.yy-screen-header_customer, .yy-screen-header_title, .yy-screen-header_time {
    flex: 1;
    display: inline-flex;
    min-width: 0;
}
.yy-screen-header_customer {
    justify-content: flex-start;
    font-size: 0.45rem;
    flex: 0 0 70%;
}

.yy-screen-header_time {
    justify-content: flex-end;
    font-size: 0.3rem;
    flex: 0 0 30%;
}

.yy-screen-content {
    flex: auto;
    min-height: 0;
    padding: 0.1rem;
    display: flex;
}
.yy-screen-content-list {
    flex: auto;
    min-height: 0;
    background: transparent;
    border: 0.1rem solid #fff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    font-size: 0.5rem;
    color: var(--skin-main-color);
}

.yy-screen-content_person {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.yy-screen-content_row {
    display: flex;
    flex-direction: row;
}
.yy-screen-content_column {
    display: flex;
    flex-direction: column;
}
.yy-screen-content_row-cell {
    border: 0.02rem solid #fff;
    flex: 1;
    min-width: 0;
}

.yy-screen-content_row-cell-title {
    height: 1rem;
    background: #005991;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.yy-screen-content_row-cell-phone {
    flex: 0 0 3rem;
    width: 100%;
    text-align: center;
    min-height: 0;
}
.yy-screen-content_row-cell-phone > .avatar-icon {
    width: 100%;
    height: 100%;
}
.yy-screen-content_row-cell-item {
    flex: auto;
    min-width: 0;
    border-top: 0.01rem solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.5rem;
}
.yy-screen-content_row-cell-item--one {
    flex: 1;
    min-height: 0;
}
.yy-screen-content_row-cell-item--desc {
    flex: 2;
    font-size: 0.3rem;
    padding: 0.10rem;
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: baseline;
}


#yy-screen-just-call {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0rem;
    background: #f1f1f1;
    box-shadow: 0 0 20px 5px #ddd;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    letter-spacing: 0.1rem;
    font-size: 0.8rem;
    font-weight: bold;
    width: 90%;
    overflow: hidden;
}
#yy-screen-just-call .yy-screen-just-call__message > div:first-child {
    padding: 0.1rem 0.25rem;
    margin-bottom: 0.2rem;
    font-size: 1.15rem;
    background: var(--skin-main-bg-color);
    color: var(--skin-main-color);
    text-align: center;
}
#yy-screen-just-call .yy-screen-just-call__message > div:last-child {
    padding: 0.1rem 0.25rem 0.3rem;
}

#yy-screen-just-call .yy-screen-just-call__message-patient,
#yy-screen-just-call .yy-screen-just-call__room {
    color: #e81123;
    font-weight: bold;
    font-size: 0.6rem;
}

.yy-screen-footer {
    flex:0 0 0.8rem;
    background: var(--skin-footer-bg-color);
    border-radius: 4px;
    color: var(--skin-footer-color);
    padding: 0;
    display: flex;
}
.yy-screen-footer_company {
    flex: 0 0 0;
}
.yy-screen-footer_text {
    flex: 1;
    min-width: 0;
    padding: 0.15rem;
    display: inline-flex;
    align-items: center;
    width: 100%;
}


.marquee {
    overflow: hidden;
    width: 100%; /* 设置滚动容器的宽度 */
    position: relative; /* 为了使用绝对定位 */
}
.marquee pre{
    white-space: nowrap;
    display: inline-block;
    animation: marquee 60s linear infinite;
    animation-delay: -60s;
    padding-left: 100%;
}

.marquee pre:nth-child(2) {
    animation: marquee-two 60s linear infinite;
    animation-delay: -30s;
}

/* 定义关键帧动画 */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
@keyframes marquee-two {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-200%);
    }
}


.scroll-text-box {
    width: 100%;
    border: 0;
}

.scroll-text-wrapper {
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    white-space: nowrap;
}

.scroll-text-item {
    animation: scroll linear 4s alternate infinite;
    float: left;
}

@keyframes scroll {
    0% {
        margin-left: 0;
        transform: translateX(0);
    }

    10% {
        margin-left: 0;
        transform: translateX(0);
    }

    90% {
        margin-left: 100%;
        transform: translateX(-100%);
    }

    100% {
        margin-left: 100%;
        transform: translateX(-100%);
    }
}